package com.spa.application.dto.admin.menu.geeker;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class MenuDTO {

    private Long id;

    private Long pid;

    private String path;

    private String name;

    private String component;

    private String redirect;

    private Meta meta;

    private List<MenuDTO> children;

    @Data
    public static class Meta {

        private String icon;

        private String title;

        private String activeMenu;

        private String isLink;

        @JsonProperty("isHide")
        private boolean isHide;

        @JsonProperty("isFull")
        private boolean isFull;

        @JsonProperty("isAffix")
        private boolean isAffix;

        @JsonProperty("isKeepAlive")
        private boolean isKeepAlive;

    }
}
